package top.component;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ComponentTest {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ApplicationConfig.class);
//        ComponentCase con = (ComponentCase) context.getBean("componentCase");
//        System.out.println(con);
        ComponentController con = (ComponentController) context.getBean("componentController");
        System.out.println(con);
        System.out.println(con.getMaketTwo());
    }

}
